
// 商品订单管理 - 路由
'use strict';

module.exports = app => {
  const { router, controller } = app;
  router.get('/tube/admin/queryOrders', controller.cOrdersManage.pc_c_query);
  router.put('/tube/admin/updateOrders', controller.cOrdersManage.pc_c_update_orders);
  router.delete('/tube/admin/deleteOrders', controller.cOrdersManage.pc_c_delete_orders);

  // 创建预订单
  router.post('/tube/user/createOrders', controller.cShoppings.wa_c_createOrders);  
  
  // 预结算商品查询
  router.post('/tube/user/queryJiesProducts', controller.cShoppings.wa_c_queryJiesProducts);
  //查询用户订单
  router.get('/tube/user/queryOrders', controller.cShoppings.wa_c_queryOrders);
  //查询用户订单
  router.get('/tube/user/queryOrdersNew', controller.cOrdersManage.wa_c_queryOrders);
  //用户订单操作
  router.put('/tube/user/operateOrders', controller.cOrdersManage.wa_c_operateOrders);
  //用户订单立即支付
  router.post('/tube/user/payOrders', controller.cOrdersManage.wa_c_payOrders);
  // 用户订单删除
  router.post('/tube/user/deleteOrders', controller.cOrdersManage.wa_c_delete_orders);


}
